package sg.edu.nus.iss.billing.service.subscription.feature;

import java.util.Date;

import sg.edu.nus.iss.billing.vo.subscription.feature.FeatureVO;
import sg.edu.nus.iss.billing.vo.subscription.feature.StandardChannelFeatureVO;

public class StandardChannelFeature extends Feature {

	@Override
	public double computeCharges(FeatureVO featureVO, String subscriptionId, Date date) {
		if(featureVO instanceof StandardChannelFeatureVO)
		{
			
			return ((StandardChannelFeatureVO)featureVO).getSubscriptionRate();

		}
		return 0;
	}

}
